<meta charset='utf-8' />
<input type="text" id='name'>
<button id='login'>登陆</button>

<script src='../public/jquery.js'></script>
<script src='../public/fun.js'></script>
<script>
$(function(){
	$('#login').click(function(){
		var val = $('#name').val().trim();
		if(!val){
			return;
		}
		var val2 = "omTFa02CiCTgB5FqQ4cHDcI7txXA" + val;
		var info = {"openid":val2,"nickname":"征服4","sex":1,"language":"zh_CN","city":"Tonghua","province":"Jilin","country":"CN","headimgurl":"http:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/KbsMOauZmxL64AVsAUp51aBNyrRwibhQmz5r4ddMrn3feHCgFhZdv4PIrIPdTH57GnkH3qO3nIzn3peNiaNQEgHA\/132","privilege":[]};
		var user_info = {
			time:new Date().getTime(),
			info:info
		};
		localStorage.user_info = JSON.stringify(user_info);
		C(user_info);
		C(localStorage.user_info);
		if(localStorage.user_info){
			location.replace('index.html');
		}
	});
});

</script>